package com.entrogy.service;

import com.alibaba.fastjson.JSONObject;
import com.entrogy.bean.StudentEntity;
import com.entrogy.bean.UserEntity;
import com.entrogy.bean.VisitorPassRecord;
import com.entrogy.controller.UtilsController;

import java.util.List;

/**
 * @ClassName UtilsService
 * @Description
 * @Author luoxingjiang
 * @Date 2019-11-13 下午 5:30
 * @Version 1.0
 **/
public interface UtilsService {


    /**
     * 重置同名学生照片
     * @param schoolCode
     * @return
     */
    List<StudentEntity> resetMultipleNameStudentPhoto(Integer schoolCode);

    /**
     * 三原群组数据补全
     * @return
     */
    boolean groupInformationIntegrate();

    /**
     * 查询学校内的教师
     * @param schoolCode
     * @param gradeId
     * @param classId
     * @param teacherIds
     * @param teacherName
     * @return
     */
    List<UserEntity> listSchoolTeacher(Integer schoolCode, Integer gradeId, Integer classId, String[] teacherIds, String teacherName);

    /**
     * 插入访客流水记录
     * @param records
     * @return
     */
    boolean insertVisitorPassRecord(List<VisitorPassRecord> records);

    /**
     * 查询三原考试信息
     * @return
     */
    List<JSONObject> listSanYuanExam();

    /**
     * 根据表名查询某次考试的所有信息
     * @param tableName
     * @return
     */
    List<JSONObject> listScore(String tableName);
}
